package com.xmkj.bearuser.member;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.common.widget.recyclerview.refresh.adapter.CommonAdapter;
import com.common.widget.recyclerview.refresh.adapter.ViewHolder;
import com.xmkj.bearuser.R;

import java.util.List;

/**
 * Create by leo
 * 创建日期：2018/6/15
 * 描述：
 */

public class MemberListAdapter extends CommonAdapter<String> {
    public MemberListAdapter(Context context, List<String> data) {
        super(context, data);
    }

    @Override
    protected void convert(ViewHolder holder, String item, int position) {
        holder.getParentView().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(mContext,MemberInfoDetailAcitivity.class);
                mContext.startActivity(intent);
            }
        });


    }

    @Override
    protected int getItemViewLayoutId(int position, String item) {
        return R.layout.item_member_list;
    }
}
